<?php
declare (strict_types = 1);

namespace app\api\controller\v1;

use app\api\controller\ApiController;
use app\api\model\SupplyQuoted;
use app\api\service\ApiResponse;

class Quoted extends ApiController
{
    protected $middleware = ['Token'];

    public function index()
    {
        $data = SupplyQuoted::with(['product','partner'])
        ->limit($this->request->param('limit'))
        ->select();
        return ApiResponse::success($data);
    }
}